Skip to content

PR1: Robustness + global plot style (modern/legacy) hooks#8

Merged
iahncajigas merged 1 commit intomasterfrom
codex/pr1-robustness-plot-modern
Mar 5, 2026
Merged

PR1: Robustness + global plot style (modern/legacy) hooks#8
iahncajigas merged 1 commit intomasterfrom
codex/pr1-robustness-plot-modern

Conversation

@iahncajigas
Copy link
Copy Markdown
Collaborator

Summary

Implements the first PR1 batch for robustness + plotting policy:

  • Adds global plot style API:
    • nstat.setPlotStyle('modern'|'legacy')
    • nstat.getPlotStyle
    • nstat.applyPlotStyle
  • Wires style application into core plotting entry points without renaming APIs:
    • SignalObj.plot
    • FitResult.plotCoeffs
    • FitResult.plotResults
    • FitResult.KSPlot
    • FitResult.plotSeqCorr
    • FitResult.plotInvGausTrans
    • FitResult.plotResidual
    • FitResSummary.plotAllCoeffs
    • FitResSummary.plotResidualSummary
    • FitResSummary.plotSummary
  • Documents style toggle in:
    • README.md
    • docs/DEVPLAN.md

Plot policy behavior

  • legacy: no style mutation (reproduction mode)
  • modern: readability-focused visual updates applied to existing graphics objects
    (fonts/line widths/marker sizes/legend style) while preserving traces/axes/panels.

Parity verification

Executed locally (MATLAB 2025b):

addpath('/Users/iahncajigas/Library/CloudStorage/Dropbox/Research/Matlab/nSTAT_currentRelease_Local/tools');
check_parity_against_baseline('Seed',0,'Style','legacy','CheckPixels',false);
check_parity_against_baseline('Seed',0,'Style','modern','CheckPixels',false);
run_all_checks('GenerateBaseline',false,'CheckParity',true,'RunTests',true,'PublishDocs',false,'Style','modern');

Results:

  • Legacy parity: PASS (numeric), PASS (plot structure)
  • Modern parity: PASS (numeric), PASS (plot structure)
  • run_all_checks: parity PASS; tests stage skipped because tests/ directory does not yet exist.

Notes

  • The style helper explicitly avoids creating legends on axes that did not already have one.

Parity: PASS (numeric)

Plots: PASS (structure)
@iahncajigas iahncajigas merged commit 11f9b5e into master Mar 5, 2026
0 of 2 checks passed
@iahncajigas iahncajigas deleted the codex/pr1-robustness-plot-modern branch March 5, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant